MercadoPago\Woocommerce\Gateways\AbstractGateway B

Total Complexity 97
Dependencies 14
Dependents 19
Total lines 1,127
Lines of code 640
Logical lines of code 200
Comment lines 263
Methods 51
Properties 13

Methods 51

Method Rating Maintainability Complexity Lines of code
process_payment()
A
43 7 49
getCredentialExpiredNotice()
A
47 7 35
update_option()
S
55 5 20
processReturnFail()
S
56 4 18
process_refund()
S
53 3 23
loadMelidataStoreScripts()
S
56 3 20
registerCheckoutScripts()
S
47 1 46
getAmountAndCurrency()
S
59 3 14
formFieldsHeaderSection()
S
46 1 42
formFieldsFooterSection()
S
47 1 42
getAmount()
S
61 3 12
setCheckoutSessionDataOnSessionHelperByOrderId()
S
62 3 11
getHomologValidateNoticeOrHidden()
S
55 2 21
getCredentialValidationNoticeOrHidden()
S
55 2 21
__construct()
S
56 2 18
processBlocksCheckoutData()
S
63 3 10
payment_scripts()
S
69 3 8
canAdminLoadScriptsAndStyles()
S
73 3 5
getFeeTitle()
S
61 2 13
missingCredentialsFormFieldNotice()
S
57 1 17
saveOrderPaymentsId()
S
65 2 9
init_form_fields()
S
74 2 5
webhook()
S
65 2 9
canCheckoutLoadScriptsAndStyles()
S
75 2 4
loadResearchComponent()
S
60 1 15
registerDiscountAndCommissionFeesOnCart()
S
75 2 5
getActionableValue()
S
68 2 7
handleWithRejectPayment()
S
68 2 7
generate_mp_actionable_input_html()
S
60 1 14
getCheckoutName()
S
100 1 0
formFields()
S
70 1 7
formFieldsMainSection()
S
100 1 0
isMissingCredentials()
S
72 1 6
registerAdminScripts()
S
66 1 10
payment_fields()
S
91 1 2
validate_fields()
S
82 1 3
proccessPaymentInternal()
S
100 1 0
isAvailable()
S
81 1 3
loadMpWooCommerceScripts()
S
82 1 3
getFeeText()
S
74 1 4
generate_mp_toggle_switch_html()
S
64 1 10
generate_mp_checkbox_list_html()
S
66 1 9
generate_mp_config_title_html()
S
65 1 10
generate_mp_card_info_html()
S
65 1 10
generate_mp_preview_html()
S
65 1 10
generate_mp_support_link_html()
S
65 1 10
generate_mp_tooltip_selection_html()
S
65 1 10
getRejectedPaymentErrorMessage()
S
75 1 4
get_connection_url()
S
80 1 3
get_settings_url()
S
79 1 3
getEnabled()
S
79 1 3